const { CleanWebpackPlugin } = require("clean-webpack-plugin");
const HtmlWebpackPlugin = require("html-webpack-plugin");
const RemoveCommentsPlugin = require("./remove-comments-plugin");

module.exports = {
  mode: "none",
  output: {
    filename: "main-[hash:8].js",
  },
  plugins: [
    new CleanWebpackPlugin(),
    new HtmlWebpackPlugin({
      template: "./src/index.html",
      title: "bbbbbb",
      srcName: "srcName22",
      // title: "test webpack",
      // meta: {
      //   viewport: "width=device-width",
      // },
    }),
    new RemoveCommentsPlugin(),
  ],
  module: {
    rules: [
      {
        test: /\.css$/,
        use: ["style-loader", "css-loader"],
      },
      {
        test: /\.md$/,
        use: ["./markdown-loader.js"],
      },
    ],
  },
};
